<template>
	<view class="content">
		<block v-if="Info.length==0">
		<view class="image_box" ><image class="imageph flexs " src="../../static/image/srmx_img_k@2x.png" mode=""></image></view>
		<view class="text-center text_no">暂无更多内容</view>
		</block>
		<block v-else>
		<view class="list_box">
			<view class="list_box_item" v-for="(item,index) in Info" :key='index'>
				<view class="list_box_item_l">
					<!-- 1微信，2支付宝 -->
					
					<view class="list_item_top">{{item.note}}</view>
					<!-- <view class="list_item_top" v-if='item.type ==2'>支付宝充值</view> -->
					<view class="list_item_time">{{item.createtime}}</view>
				</view>
				<view class="list_box_item_r">￥{{item.money}}</view>
			</view>
		</view>
		</block>
			
			
		</view>
	</view>
</template>

<script>
	import {getinwater} from '@/api/personal.js'
	export default {
		data() {
			return {
				Info:[],
				page:1,
				limit:10
			}
		},
		onLoad() {
			this.getInfo()
	
		},
		onReachBottom() {
			// this.page++
			this.limit=this.limit+10
			this.getInfo()
		},
		methods: {
			getInfo(){
				let obj = {
					page:this.page,
					pageSize:this.limit
				}
				getinwater(obj).then(res => {
					if (res.code == 1) {
						this.Info=res.data.data
						console.log(this.Info)
					} else {
						this.$msg(res.msg);
					}
				})
			},
	
		}
	}
</script>

<style>
	.content{
		width: 100%;
		height: 100%;
		/* overflow: hidden; */
		background-color: #F5F5F5;
	}
	.image_box {
		overflow: hidden;
	}
	.imageph {
		margin: 0 auto;
		width: 354rpx;
		height: 253rpx;
		margin-top: 360rpx;
	}
	.text_no {
		color:#a6a6a6;
		font-size: 30rpx;
		margin-top: 40rpx;
		text-align: center;
	}
	.list_box{
		width: 100%;
		/* height: calc(100% - 20rpx); */
		overflow-y: auto;
		background-color: #FFFFFF;
		margin-top: 20rpx;
	}
	.list_box_item{
		width: 92%;
		height: 100rpx;
		background-color: #FFFFFF;
		margin: auto;
		/* padding: 0rpx 30rpx; */
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-bottom: 1rpx solid #F5F5F5;
	}
	.list_item_top{
		font-size: 28rpx;
		font-weight: 500;
		color: #343434;
	}
	.list_item_time{
		font-size: 24rpx;
		font-weight: 500;
		color: #999999;
	}
	.list_box_item_r{
		font-size: 34rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #343434;
	}
	.kong{
		width: 100%;
		height: 20rpx;
		background-color: #F5F5F5;
	}
</style>
